package tomsung.cloud.agdc.common;

public class Const {
	public final static String USER_SESSION_KEY = "USER_SESSION_KEY";

	public final static String GREENHOUSEID = "GREENHOUSEID";
	public static final String GROUPID = "GROUPID";
	public final static String SYSTEMID = "SYSTEMID";
	public final static String SYSTEMIDS = "SYSTEMIDS";
	public final static String CTRLID = "CTRLID";
	public final static String DEVICEID = "DEVICEID";

	public final static String EQPS = "EQPS";
	public final static String RTUID = "RTUID";
	public final static String EQPTYPE = "EQPTYPE";
	public final static String EQPID = "EQPID";
	public final static String TERMINALID = "TERMINALID";
	public final static String STATE = "STATE";
	public final static String OPERSTATE = "OPERSTATE";
	
	public final static String PLANID = "PLANID";
	
	public final static String OPEN = "OPEN";
	public final static String CLOSE = "CLOSE";
	
	
	/*阀门周期：0
	阀门自动：1
	风机周期：2
	风机自动：3
	生长灯周期：4
	生长灯自动：5*/
	public final static String CODE = "CODE";

	public final static String TASKTYPE = "TASKTYPE";
	public final static String ACTIONTYPE = "ACTIONTYPE";
	public static final String TASKCOUNT = "COUNT";
	public static final String CYCLEPLAN = "CYCLEPLAN";
	public static final String DEVICES = "DEVICES";
	public static final String CROPSTEPINFOS = "CROPSTEPINFOS";
	
	public static final String BEGINDATETIME = "BEGINDATETIME";

	public static final String ENDDATETIME = "ENDDATETIME";

	public static final String DURATIONTIME = "DURATIONTIME";

	public static final String PERIODTIME = "PERIODTIME";

	public static final String INDEX = "INDEX";
	
	public static final String TIGGERPLAN = "TIGGERPLAN";

	public static final String SENSORCTRLID = "SENSORCTRLID";

	public static final String SENSOREQPTYPE = "SENSOREQPTYPE";

	public static final String SENSOREQPID = "SENSOREQPID";

	public static final String HUMIDITYMAX = "HUMIDITYMAX";

	public static final String HUMIDITYMIN = "HUMIDITYMIN";
	
	public static final String TEMPMAX = "TEMPMAX";

	public static final String TEMPMIN = "TEMPMIN";
	
	public static final String DATE = "DATE";
	
	public static final String CROPID = "CROPID";
	public static final String CROPNAME = "CROPNAME";
	public static final String CROPIMAGE = "CROPIMAGE";
	public static final String CROPTYPE = "CROPTYPE";
	public static final String PLANTTYPE = "PLANTTYPE";
	public static final String CROPTYPENAME = "CROPTYPENAME";
	
	/**
	 * 空气湿度
	 */
	public final static String SENSOR_AIR_HUMIDITY = "SENSOR_AIR_HUMIDITY";

	/**
	 * 空气温度
	 */
	public final static String SENSOR_AIR_TEMPERATURE = "SENSOR_AIR_TEMPERATURE";
	
	/**
	 * 土壤湿度
	 */
	public final static String SENSOR_SOIL_HUMIDITY = "SENSOR_SOIL_HUMIDITY";

	/**
	 * 土壤温度
	 */
	public final static String SENSOR_SOIL_TEMPERATURE = "SENSOR_SOIL_TEMPERATURE";
	
	/**
	 * 光照强度
	 */
	public final static String SENSOR_LIGHT_INTENSITY = "SENSOR_LIGHT_INTENSITY";
	
	/**
	 * 设备类型 首部：0 ；田间：1；阀门：2；传感器：3；卷帘机：4；风机：5
	 */
	public static final int ELEC_VALVE = 0;				//电动阀
	public static final int ELEC_MAGNETIC_VALVE = 1;	//电磁阀
	public static final int PUMP = 2;					//水泵
	public static final int FAN = 3;					//风机
	public static final int SHUTTER_MACHINE = 4;		//卷帘机
	
	public static final int SOIL_HUMI_SENSOR = 0x40;		//土壤湿度传感器
	public static final int SOIL_TEMP_SENSOR = 0x41;		//土壤温度传感器
	public static final int SOIL_H_AND_T_SENSOR = 0x42;	//土壤温湿度传感器
	public static final int AIR_HUMI_SENSOR = 0x48;		//空气温度传感器
	public static final int AIR_TEMP_SENSOR = 0x49;		//空气湿度传感器
	public static final int AIR_H_AND_T_SENSOR = 0x4A;		//空气温湿度传感器
	public static final int SENSOE_ALL = 0x7F;				//所有传感器
	
	public static final int IUC = (byte)0x80;				//首部控制器自身(IUC=智能单元控制器)
	public static final int ICT = (byte)0x81;				//田间控制器自身(ICT=智能控制终端)
	public static final int IUC_AND_ICT = (byte)0x8F;		//所有首部控制器和田间控制器
	
	public static final int DEV_ALL = (byte)0xFF;			//所有设备
	
	public static final int EXPERT_ORDER = 0;
	public static final int EXPERT_DIAGNOSE = 1;

}
